package util;

import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;

public class DBConnection {
	public static Connection con = null;

	public static Connection getConn() throws IOException {

		try {

			Class.forName("oracle.jdbc.driver.OracleDriver");
			con = DriverManager.getConnection(
					"jdbc:oracle:thin:@localhost:1521:xe", "system", "system");
			// con.setAutoCommit(false);
		} catch (Exception e) {
			e.printStackTrace();
		}

		return con;
	}
}